﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PS.DataTypes;

namespace PS.Engine.Strategies
{
    internal sealed class StrategyFactory
    {
        internal static StrategyFactory Instance = new StrategyFactory();

        static StrategyFactory()
        {
        }

        private StrategyFactory()
        {
        }

        internal PriorityQueue<int, Strategy> GetStrategiesByPrecedence()
        {
            PriorityQueue<int, Strategy> s = new PriorityQueue<int, Strategy>();
            GentlemanWaitStrategy g = new GentlemanWaitStrategy();
            s.Enqueue(g.Precedence, g);
            return s;
        }

        internal PriorityQueue<int, WaitStrategy> GetWaitStrategiesByPrecedence()
        {
            PriorityQueue<int, WaitStrategy> s = new PriorityQueue<int, WaitStrategy>();
            GentlemanWaitStrategy g = new GentlemanWaitStrategy();
            s.Enqueue(g.Precedence, g);
            return s;
        }
    }
}
